<?php
namespace app\model;

use support\Model;

class ProductModel extends Model
{
    protected $table = 'products';
    
    protected $fillable = ['category_id', 'title', 'description', 'image', 'images', 'price', 'stock', 'sales', 'is_on_sale', 'sort', 'created_at', 'updated_at'];
    
    protected $hidden = [''];
    
    protected $casts = array (
  'images' => 'array',
  'created_at' => 'datetime',
  'updated_at' => 'datetime',
);
} 